package com.soecode.lyf.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.soecode.lyf.dao.SearchDao;
import com.soecode.lyf.entity.Collect;
import com.soecode.lyf.entity.Comment;
import com.soecode.lyf.entity.User;
import com.soecode.lyf.service.SearchService;

@Service
public class SearchServiceimpl implements SearchService {

	@Autowired
	private SearchDao searchdao;
	
	@Override
	public List<Collect> SearchLesson(String name){ // 返回关注列表
		return searchdao.SearchLesson(name);
	}
	
	@Override
	public List<Comment> SearchQuestion(String searchValue){ // 返回查询问题
		return searchdao.SearchQuestion(searchValue);
	}
}
